<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: cv::gapi::GKernelPackage Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d4/d1c/namespacecv_1_1gapi.html">gapi</a></li><li class="navelem"><a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html">GKernelPackage</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="../../df/db8/classcv_1_1gapi_1_1GKernelPackage-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::gapi::GKernelPackage Class Reference<div class="ingroups"><a class="el" href="../../d7/d0d/group__gapi.html">G-API framework</a> &raquo; <a class="el" href="../../d9/d29/group__gapi__compile__args.html">G-API Graph Compilation Arguments</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>A container class for heterogeneous kernel implementation collections and graph transformations.  
 <a href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html#details">More...</a></p>

<p><code>#include &lt;opencv2/gapi/gkernel.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a588a9ca84d58acf02089798cccfc474c"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="../../db/d3a/classcv_1_1gapi_1_1GBackend.html">GBackend</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html#a588a9ca84d58acf02089798cccfc474c">backends</a> () const</td></tr>
<tr class="memdesc:a588a9ca84d58acf02089798cccfc474c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Lists all backends which are included into package.  <a href="#a588a9ca84d58acf02089798cccfc474c">More...</a><br /></td></tr>
<tr class="separator:a588a9ca84d58acf02089798cccfc474c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb5984e5f1ee3ea5fc87eb49f7906817"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html#adb5984e5f1ee3ea5fc87eb49f7906817">get_kernel_ids</a> () const</td></tr>
<tr class="memdesc:adb5984e5f1ee3ea5fc87eb49f7906817"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns vector of kernel ids included in the package.  <a href="#adb5984e5f1ee3ea5fc87eb49f7906817">More...</a><br /></td></tr>
<tr class="separator:adb5984e5f1ee3ea5fc87eb49f7906817"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad75cd889f73f78d65206607d48eb25ef"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; <a class="el" href="../../dd/db9/structcv_1_1GTransform.html">GTransform</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html#ad75cd889f73f78d65206607d48eb25ef">get_transformations</a> () const</td></tr>
<tr class="memdesc:ad75cd889f73f78d65206607d48eb25ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns vector of transformations included in the package.  <a href="#ad75cd889f73f78d65206607d48eb25ef">More...</a><br /></td></tr>
<tr class="separator:ad75cd889f73f78d65206607d48eb25ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5628537e08d2cfa6a79589a86f47d8f1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html#a5628537e08d2cfa6a79589a86f47d8f1">include</a> (const <a class="el" href="../../d5/d00/classcv_1_1gapi_1_1GFunctor.html">GFunctor</a> &amp;functor)</td></tr>
<tr class="separator:a5628537e08d2cfa6a79589a86f47d8f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd1c2ad5bf8bf27f0b61ae858da370bd"><td class="memTemplParams" colspan="2">template&lt;typename KImpl &gt; </td></tr>
<tr class="memitem:acd1c2ad5bf8bf27f0b61ae858da370bd"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html#acd1c2ad5bf8bf27f0b61ae858da370bd">include</a> ()</td></tr>
<tr class="memdesc:acd1c2ad5bf8bf27f0b61ae858da370bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Put a new kernel implementation or a new transformation KImpl into the package.  <a href="#acd1c2ad5bf8bf27f0b61ae858da370bd">More...</a><br /></td></tr>
<tr class="separator:acd1c2ad5bf8bf27f0b61ae858da370bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e72e47485b80e1e5fc82a31cfc8bb48"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html#a1e72e47485b80e1e5fc82a31cfc8bb48">include</a> (const <a class="el" href="../../db/d3a/classcv_1_1gapi_1_1GBackend.html">cv::gapi::GBackend</a> &amp;backend, const std::string &amp;kernel_id)</td></tr>
<tr class="memdesc:a1e72e47485b80e1e5fc82a31cfc8bb48"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a new kernel based on it's backend and id into the kernel package.  <a href="#a1e72e47485b80e1e5fc82a31cfc8bb48">More...</a><br /></td></tr>
<tr class="separator:a1e72e47485b80e1e5fc82a31cfc8bb48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb06af2712efd64912a5fa1a42837f8f"><td class="memTemplParams" colspan="2">template&lt;typename KImpl &gt; </td></tr>
<tr class="memitem:aeb06af2712efd64912a5fa1a42837f8f"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html#aeb06af2712efd64912a5fa1a42837f8f">includes</a> () const</td></tr>
<tr class="memdesc:aeb06af2712efd64912a5fa1a42837f8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test if a particular kernel <em>implementation</em> KImpl is included in this kernel package.  <a href="#aeb06af2712efd64912a5fa1a42837f8f">More...</a><br /></td></tr>
<tr class="separator:aeb06af2712efd64912a5fa1a42837f8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2fd0bdce5a1e84888077349ef261908"><td class="memTemplParams" colspan="2">template&lt;typename KAPI &gt; </td></tr>
<tr class="memitem:aa2fd0bdce5a1e84888077349ef261908"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html#aa2fd0bdce5a1e84888077349ef261908">includesAPI</a> () const</td></tr>
<tr class="separator:aa2fd0bdce5a1e84888077349ef261908"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac32a15d490b1a17dac63556b39d7535e"><td class="memTemplParams" colspan="2">template&lt;typename KAPI &gt; </td></tr>
<tr class="memitem:ac32a15d490b1a17dac63556b39d7535e"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="../../db/d3a/classcv_1_1gapi_1_1GBackend.html">GBackend</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html#ac32a15d490b1a17dac63556b39d7535e">lookup</a> () const</td></tr>
<tr class="memdesc:ac32a15d490b1a17dac63556b39d7535e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find a kernel (by its API)  <a href="#ac32a15d490b1a17dac63556b39d7535e">More...</a><br /></td></tr>
<tr class="separator:ac32a15d490b1a17dac63556b39d7535e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef7392cdc72aafbd304abf42b15f98fb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html#aef7392cdc72aafbd304abf42b15f98fb">remove</a> (const <a class="el" href="../../db/d3a/classcv_1_1gapi_1_1GBackend.html">GBackend</a> &amp;backend)</td></tr>
<tr class="memdesc:aef7392cdc72aafbd304abf42b15f98fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove all kernels associated with the given backend from the package.  <a href="#aef7392cdc72aafbd304abf42b15f98fb">More...</a><br /></td></tr>
<tr class="separator:aef7392cdc72aafbd304abf42b15f98fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ec294d11a28bc25b8e4b60e94d67a1f"><td class="memTemplParams" colspan="2">template&lt;typename KAPI &gt; </td></tr>
<tr class="memitem:a3ec294d11a28bc25b8e4b60e94d67a1f"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html#a3ec294d11a28bc25b8e4b60e94d67a1f">remove</a> ()</td></tr>
<tr class="memdesc:a3ec294d11a28bc25b8e4b60e94d67a1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove all kernels implementing the given API from the package.  <a href="#a3ec294d11a28bc25b8e4b60e94d67a1f">More...</a><br /></td></tr>
<tr class="separator:a3ec294d11a28bc25b8e4b60e94d67a1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf653cfda76e2067c792290d509d2fc5"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html#aaf653cfda76e2067c792290d509d2fc5">size</a> () const</td></tr>
<tr class="memdesc:aaf653cfda76e2067c792290d509d2fc5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns total number of kernels in the package (across all backends included)  <a href="#aaf653cfda76e2067c792290d509d2fc5">More...</a><br /></td></tr>
<tr class="separator:aaf653cfda76e2067c792290d509d2fc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:ac95f9fffb50ea01bba71c07c526475cf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html">GKernelPackage</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html#ac95f9fffb50ea01bba71c07c526475cf">combine</a> (const <a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html">GKernelPackage</a> &amp;lhs, const <a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html">GKernelPackage</a> &amp;rhs)</td></tr>
<tr class="memdesc:ac95f9fffb50ea01bba71c07c526475cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new package based on <code>lhs</code> and <code>rhs</code>.  <a href="#ac95f9fffb50ea01bba71c07c526475cf">More...</a><br /></td></tr>
<tr class="separator:ac95f9fffb50ea01bba71c07c526475cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A container class for heterogeneous kernel implementation collections and graph transformations. </p>
<p><a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html" title="A container class for heterogeneous kernel implementation collections and graph transformations. ">GKernelPackage</a> is a special container class which stores kernel <em>implementations</em> and graph <em>transformations</em>. Objects of this class are created and passed to <a class="el" href="../../d9/dfe/classcv_1_1GComputation.html#ab11bcc0578f9aa5ec8f8eaf6cda0dfa8" title="Compile the computation for specific input format(s). ">cv::GComputation::compile()</a> to specify which kernels to use and which transformations to apply in the compiled graph. <a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html" title="A container class for heterogeneous kernel implementation collections and graph transformations. ">GKernelPackage</a> may contain kernels of different backends, e.g. be heterogeneous.</p>
<p>The most easy way to create a kernel package is to use function <a class="el" href="../../d9/d29/group__gapi__compile__args.html#ga18c46d5801429bb63848fc6e2391cb20" title="Create a kernel package object containing kernels and transformations specified in variadic template ...">cv::gapi::kernels()</a>. This template functions takes kernel implementations in form of type list (variadic template) and generates a kernel package atop of that.</p>
<p>Kernel packages can be also generated programmatically, starting with an empty package (created with the default constructor) and then by populating it with kernels via call to <a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html#acd1c2ad5bf8bf27f0b61ae858da370bd" title="Put a new kernel implementation or a new transformation KImpl into the package. ">GKernelPackage::include()</a>. Note this method is also a template one since G-API kernel and transformation implementations are <em>types</em>, not objects.</p>
<p>Finally, two kernel packages can be combined into a new one with function <a class="el" href="../../d4/d1c/namespacecv_1_1gapi.html#ab3c55a390c722279ced6f56523fa01a7">cv::gapi::combine()</a>. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a588a9ca84d58acf02089798cccfc474c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a588a9ca84d58acf02089798cccfc474c">&#9670;&nbsp;</a></span>backends()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;<a class="el" href="../../db/d3a/classcv_1_1gapi_1_1GBackend.html">GBackend</a>&gt; cv::gapi::GKernelPackage::backends </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Lists all backends which are included into package. </p>
<dl class="section return"><dt>Returns</dt><dd>vector of backends </dd></dl>

</div>
</div>
<a id="adb5984e5f1ee3ea5fc87eb49f7906817"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb5984e5f1ee3ea5fc87eb49f7906817">&#9670;&nbsp;</a></span>get_kernel_ids()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;std::string&gt; cv::gapi::GKernelPackage::get_kernel_ids </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns vector of kernel ids included in the package. </p>
<dl class="section return"><dt>Returns</dt><dd>vector of kernel ids included in the package </dd></dl>

</div>
</div>
<a id="ad75cd889f73f78d65206607d48eb25ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad75cd889f73f78d65206607d48eb25ef">&#9670;&nbsp;</a></span>get_transformations()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt;<a class="el" href="../../dd/db9/structcv_1_1GTransform.html">GTransform</a>&gt;&amp; cv::gapi::GKernelPackage::get_transformations </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns vector of transformations included in the package. </p>
<dl class="section return"><dt>Returns</dt><dd>vector of transformations included in the package </dd></dl>

</div>
</div>
<a id="a5628537e08d2cfa6a79589a86f47d8f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5628537e08d2cfa6a79589a86f47d8f1">&#9670;&nbsp;</a></span>include() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void cv::gapi::GKernelPackage::include </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d5/d00/classcv_1_1gapi_1_1GFunctor.html">GFunctor</a> &amp;&#160;</td>
          <td class="paramname"><em>functor</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="acd1c2ad5bf8bf27f0b61ae858da370bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd1c2ad5bf8bf27f0b61ae858da370bd">&#9670;&nbsp;</a></span>include() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename KImpl &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void cv::gapi::GKernelPackage::include </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Put a new kernel implementation or a new transformation KImpl into the package. </p>

</div>
</div>
<a id="a1e72e47485b80e1e5fc82a31cfc8bb48"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e72e47485b80e1e5fc82a31cfc8bb48">&#9670;&nbsp;</a></span>include() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void cv::gapi::GKernelPackage::include </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/d3a/classcv_1_1gapi_1_1GBackend.html">cv::gapi::GBackend</a> &amp;&#160;</td>
          <td class="paramname"><em>backend</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>kernel_id</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Adds a new kernel based on it's backend and id into the kernel package. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">backend</td><td>backend associated with the kernel </td></tr>
    <tr><td class="paramname">kernel_id</td><td>a name/id of the kernel </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aeb06af2712efd64912a5fa1a42837f8f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb06af2712efd64912a5fa1a42837f8f">&#9670;&nbsp;</a></span>includes()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename KImpl &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::gapi::GKernelPackage::includes </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Test if a particular kernel <em>implementation</em> KImpl is included in this kernel package. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html#aa2fd0bdce5a1e84888077349ef261908">includesAPI()</a></dd></dl>
<dl class="section note"><dt>Note</dt><dd>cannot be applied to transformations</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>true if there is such kernel, false otherwise. </dd></dl>

</div>
</div>
<a id="aa2fd0bdce5a1e84888077349ef261908"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2fd0bdce5a1e84888077349ef261908">&#9670;&nbsp;</a></span>includesAPI()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename KAPI &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::gapi::GKernelPackage::includesAPI </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Check if package contains ANY implementation of a kernel API by API type. </p>

</div>
</div>
<a id="ac32a15d490b1a17dac63556b39d7535e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac32a15d490b1a17dac63556b39d7535e">&#9670;&nbsp;</a></span>lookup()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename KAPI &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/d3a/classcv_1_1gapi_1_1GBackend.html">GBackend</a> cv::gapi::GKernelPackage::lookup </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Find a kernel (by its API) </p>
<p>Returns implementation corresponding id. Throws if nothing found.</p>
<dl class="section return"><dt>Returns</dt><dd>Backend which hosts matching kernel implementation. </dd></dl>

</div>
</div>
<a id="aef7392cdc72aafbd304abf42b15f98fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef7392cdc72aafbd304abf42b15f98fb">&#9670;&nbsp;</a></span>remove() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::gapi::GKernelPackage::remove </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/d3a/classcv_1_1gapi_1_1GBackend.html">GBackend</a> &amp;&#160;</td>
          <td class="paramname"><em>backend</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Remove all kernels associated with the given backend from the package. </p>
<p>Does nothing if there's no kernels of this backend in the package.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">backend</td><td>backend which kernels to remove </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3ec294d11a28bc25b8e4b60e94d67a1f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ec294d11a28bc25b8e4b60e94d67a1f">&#9670;&nbsp;</a></span>remove() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename KAPI &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void cv::gapi::GKernelPackage::remove </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Remove all kernels implementing the given API from the package. </p>
<p>Does nothing if there's no kernels implementing the given interface. </p>

</div>
</div>
<a id="aaf653cfda76e2067c792290d509d2fc5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf653cfda76e2067c792290d509d2fc5">&#9670;&nbsp;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t cv::gapi::GKernelPackage::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns total number of kernels in the package (across all backends included) </p>
<dl class="section return"><dt>Returns</dt><dd>a number of kernels in the package </dd></dl>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="ac95f9fffb50ea01bba71c07c526475cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac95f9fffb50ea01bba71c07c526475cf">&#9670;&nbsp;</a></span>combine</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html">GKernelPackage</a> combine </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html">GKernelPackage</a> &amp;&#160;</td>
          <td class="paramname"><em>lhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../de/db6/classcv_1_1gapi_1_1GKernelPackage.html">GKernelPackage</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a new package based on <code>lhs</code> and <code>rhs</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lhs</td><td>"Left-hand-side" package in the process </td></tr>
    <tr><td class="paramname">rhs</td><td>"Right-hand-side" package in the process </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a new kernel package. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/gapi/<a class="el" href="../../de/d7f/gkernel_8hpp.html">gkernel.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:47 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
